home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scribuswin.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-10-11  |  2.7 KB  |  82 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           scribuswin.h  -  description
  9.                              -------------------
  10.     begin                : Mit Nov 6 2002
  11.     copyright            : (C) 2002 by Franz Schmid
  12.     email                : Franz.Schmid@altmuehlnet.de
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. #ifndef SCRIBUSWIN_H
  25. #define SCRIBUSWIN_H
  26.  
  27. #include <QMainWindow>
  28. #include <QFrame>
  29. #include <QCloseEvent>
  30. #include <QResizeEvent>
  31. #include <QHBoxLayout>
  32.  
  33. class ScribusDoc;
  34. class ScribusMainWindow;
  35. class ScribusView;
  36.  
  37. #include "scribusapi.h"
  38. class MasterPagesPalette;
  39. /**
  40.   *@author Franz Schmid
  41.   */
  42.  
  43. class SCRIBUS_API ScribusWin : public QMainWindow
  44. {
  45.     Q_OBJECT
  46.  
  47. public: 
  48.     ScribusWin(QWidget* parent, ScribusDoc* doc);
  49.     ~ScribusWin() {};
  50.     void closeEvent(QCloseEvent *ce);
  51.     void resizeEvent(QResizeEvent *re);
  52.     void setView(ScribusView* newView);
  53.     void setMainWindow(ScribusMainWindow *);
  54.     ScribusView* view() const { return m_View;}
  55.     ScribusDoc* doc() const { return m_Doc;}
  56.     void setMasterPagesPalette(MasterPagesPalette* newMPP);
  57.     MasterPagesPalette* masterPagesPalette() const;
  58.     void setMenuStatus(int index, bool value) { if (index>=0 && index <=6) MenuStat[index]=value;}
  59.     bool menuStatus(int index) const { if (index>=0 && index <=6) return MenuStat[index]; else return false; }
  60.     void setMasterPagesPaletteShown(bool isShown) const;
  61.     
  62. public slots:
  63.     void slotAutoSave();
  64.     
  65. signals:
  66.     void AutoSaved();
  67.  
  68. protected:
  69.     virtual void windowActivationChange ( bool oldActive );
  70.     QString currentDir;
  71.     QHBoxLayout* statusFrameLayout;
  72.     ScribusMainWindow* m_MainWindow;
  73.     ScribusView* m_View;
  74.     ScribusDoc* m_Doc;
  75.     MasterPagesPalette* m_masterPagesPalette;
  76.     QFrame *statusFrame;
  77.     bool MenuStat[7];
  78.     int winIndex;
  79. };
  80.  
  81. #endif
  82.